package com.lwm.controller;

import com.lwm.factory.BeanFactory;
import com.lwm.service.IAccountService;

/**
 * @author liweimin
 * @date 2021/6/1 16:27
 * @since
 */
public class AccountController {
    public static void main(String[] args) {
//        IAccountService accountService = new AccountServiceImpl();
        /**使用工厂获取Bean**/
        IAccountService accountService = (IAccountService) BeanFactory.getBean("accountService");
        accountService.saveAccount();
    }
}
